package com.nf.db.handler.map;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;

import static com.nf.db.RowProcessor.DEFAULT_ROWPROCESSOR;

public class MapMapHandler<K>
        extends AbstractMapHandler<K, Map<String, Object>> {

    public MapMapHandler(String columnName) {
        super(columnName);
    }


    @Override
    protected Map<String, Object> createRow(ResultSet rs) throws SQLException {
        return DEFAULT_ROWPROCESSOR.toMap(rs);
    }
}
